import service from '@/utils/crmRequest'

export default () => ({

  // 商销客户---创建
  SHANGPIN_CREATE: (data,id = 0) => {
    return service({
      url: '/api/seller/create?id=' + id,
      method: 'post',
      data
    })
  },

  // 商销客户---编辑
  SHANGPIN_UPDATE: (data) => {
    return service({
      url: '/api/seller/update',
      method: 'put',
      data
    })
  },

  // 商销客户---变更
  SHANGPIN_CHANGE: (data) => {
    return service({
      url: '/api/seller/change',
      method: 'put',
      data
    })
  },


  // 商销客户---列表
  SHANGPIN_LIST: (data) => {
    return service({
      url: '/api/seller/list',
      method: 'post',
      data
    })
  },


  // 商销客户---删除
  SHANGPIN_DELETE: (id) => {
    return service({
      url: `/api/seller/delete?id=${id}`,
      method: 'delete',
    })
  },

  // 商销客户---详情
  SHANGPIN_DETAILS: (id) => {
    return service({
      url: `/api/seller/detail?id=${id}`,
      method: 'get',
    })
  },

   // 商销客户---详情---列表
   SHANGPIN_DETAILS_LIST: (id) => {
    return service({
      url: `/api/seller/factor/list?id=${id}`,
      method: 'get',
    })
  },

   // 商销客户---资质创建
  SHANGPIN_QUALIFICATION_CERATE:(data)=>{
    return service({
      url: `/api/seller/qualification/create`,
      method: 'post',
      data
    })
  },

   // 商销客户---资质更新
   SHANGPIN_QUALIFICATION_UPDATE:(data)=>{
    return service({
      url: `/api/seller/qualification/update`,
      method: 'PUT',
      data
    })
  },

  // 商销客户---资质变更
  SHANGPIN_QUALIFICATION_CHANGEE:(data)=>{
    return service({
      url: `/api/seller/qualification/change`,
      method: 'PUT',
      data
    })
  },



})
